package sk.naive.talker.persistence;

import sk.naive.talker.*;

import java.util.List;

/**
 *
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.11 $ $Date: 2005/02/16 19:27:21 $
 */
public interface TextPersistence extends PropertiesObjectPersistence {
	Integer createNewText() throws PersistenceException;

	List<Text> loadTexts(Integer objectId, int relationType, String sortingOrder) throws PersistenceException;

	void storeTextRelation(TextRelation textRelation) throws PersistenceException;

	List<TextRelation> loadTextRelations(Text text) throws PersistenceException;

	void removeTextRelation(TextRelation textRelation) throws PersistenceException;
}
